package com.niiwoo.civet.trade.dao.mapper.orgloan;

import com.niiwoo.civet.trade.dao.entity.orgloan.OrgLoanProject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrgLoanProjectMapperExt extends OrgLoanProjectMapper {
	/**
	 *我的借款总数.
	 * @param userId
	 * @return
	 */
	int selectMyOrgLoanloanCount(String userId);
	/**
	 * 根据项目ID查询
	 *
	 * @param projectIdList
	 * @return
	 */
	List<OrgLoanProject> selectByProjectIdList(@Param("projectIdList") List<Long> projectIdList);

    /**
     * @Title: queryLoanProjectByUserIdAndContractNo
     * @Description: 通过合同编号和用户编号查询项目
     * @param userId
     *            用户编号
     * @param projectId
     *            合同编号
     * @return ProjectWithBLOBs 返回类型
     */
	OrgLoanProject selectProjectByUserIdAndProjectId(@Param("userId") String userId,
                                                    @Param("projectId") Long projectId);
}